<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function printEvent(e){
            console.log(e)
        }
    </script>
</head>
<body>
    <input type="button" value="event" onclick="printEvent(event)">
    <br>
    <input type="button" value="event" onmousedown="printEvent(event)">
    <br>
    <input type="text" value="event" onkeydown="printEvent(event)">


</body>
</html>